javascript map filter (higher order)
code:_.js
2,3,4
.filter((e) => e>2) //
3,4
が返る
2,3,4
.map((e) => e*3) //
6,9,12
が返る
1,4,7
.forEach(e => {console.log(e)})
list = list.filter((e,i) =>{return list.indexOf(e) == i}); // uniq
? javascript map filter (higher order)
javascript array loop